package cn.edu.hbnu.spoc.service.impl;

import cn.edu.hbnu.spoc.dao.UserDao;
import cn.edu.hbnu.spoc.pojo.User;
import cn.edu.hbnu.spoc.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author sakura
 * @date 2018/03/01 10:45
 */
@Service
public class TestServiceImpl implements TestService {

    @Autowired
    private UserDao userDao;

    @Override
    public String test() {
        return "test";
    }

    @Override
    public List<User> listUsers() {
        return userDao.listUsers();
    }
}
